﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Details.aspx.vb" Inherits="prototype.PhoneDetails" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="ID" DataSourceID="SqlDataSource1">
        <Columns>
            <asp:BoundField DataField="BrandName" HeaderText="BrandName" 
                SortExpression="BrandName" />
            <asp:BoundField DataField="PhoneName" HeaderText="PhoneName" 
                SortExpression="PhoneName" />
            <asp:BoundField DataField="PhoneVersion" HeaderText="PhoneVersion" 
                SortExpression="PhoneVersion" />
            <asp:BoundField DataField="DateRelease" HeaderText="DateRelease" 
                SortExpression="DateRelease" />
            <asp:BoundField DataField="Review" HeaderText="Review" 
                SortExpression="Review" />
            <asp:ImageField DataImageUrlField="Picture" HeaderText="Picture">
                <ControlStyle Height="200px" Width="200px" />
            </asp:ImageField>
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:PrototypeConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:PrototypeConnectionString.ProviderName %>" 
        SelectCommand="SELECT * FROM [Phones] WHERE ([ID] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <br />
</p>
<p>
</p>
<p>
</p>
<p>
</p>
</asp:Content>
